package com.yuxi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by yuxi on 16/10/22.
 */
@SpringBootApplication  //springboot 的核心注解,主要的目的是开启自动配置
@EnableSwagger2   //swagger2
@EnableScheduling //定时任务
public class BootApplication  {

//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
//        return application.sources(BootApplication.class);
//    }


    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);

    }


}
